package com.ruoyi.web.service.impl;

import java.util.List;
import com.ruoyi.common.core.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.web.mapper.GuMrGdnumMapper;
import com.ruoyi.web.domain.GuMrGdnum;
import com.ruoyi.web.service.IGuMrGdnumService;

/**
 * 股东变化趋势Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-10-17
 */
@Service
public class GuMrGdnumServiceImpl implements IGuMrGdnumService 
{
    @Autowired
    private GuMrGdnumMapper guMrGdnumMapper;

    /**
     * 查询股东变化趋势
     * 
     * @param id 股东变化趋势主键
     * @return 股东变化趋势
     */
    @Override
    public GuMrGdnum selectGuMrGdnumById(String id)
    {
        return guMrGdnumMapper.selectGuMrGdnumById(id);
    }

    /**
     * 查询股东变化趋势列表
     * 
     * @param guMrGdnum 股东变化趋势
     * @return 股东变化趋势
     */
    @Override
    public List<GuMrGdnum> selectGuMrGdnumList(GuMrGdnum guMrGdnum)
    {
        return guMrGdnumMapper.selectGuMrGdnumList(guMrGdnum);
    }

    /**
     * 新增股东变化趋势
     * 
     * @param guMrGdnum 股东变化趋势
     * @return 结果
     */
    @Override
    public int insertGuMrGdnum(GuMrGdnum guMrGdnum)
    {
        guMrGdnum.setCreateTime(DateUtils.getNowDate());
        return guMrGdnumMapper.insertGuMrGdnum(guMrGdnum);
    }

    /**
     * 修改股东变化趋势
     * 
     * @param guMrGdnum 股东变化趋势
     * @return 结果
     */
    @Override
    public int updateGuMrGdnum(GuMrGdnum guMrGdnum)
    {
        guMrGdnum.setUpdateTime(DateUtils.getNowDate());
        return guMrGdnumMapper.updateGuMrGdnum(guMrGdnum);
    }

    /**
     * 批量删除股东变化趋势
     * 
     * @param ids 需要删除的股东变化趋势主键
     * @return 结果
     */
    @Override
    public int deleteGuMrGdnumByIds(String[] ids)
    {
        return guMrGdnumMapper.deleteGuMrGdnumByIds(ids);
    }

    /**
     * 删除股东变化趋势信息
     * 
     * @param id 股东变化趋势主键
     * @return 结果
     */
    @Override
    public int deleteGuMrGdnumById(String id)
    {
        return guMrGdnumMapper.deleteGuMrGdnumById(id);
    }
}
